package beans;

public class Star {
	
	protected int starID=0;
	protected int hip=0;
	protected int hd=0;
	protected int hr=0;
	protected String gliese="";
	protected String bayerFlamsteed="";
	protected String properName="";
	protected double ra=0;
	protected double decl=0;
	protected double distance=0;
	protected double mag=0;
	protected double absMag=0;
	protected String spectrum="";
	protected double colorIndex=0;
	protected double x=0;
	protected double y=0;
	protected double z=0;
	
	public Star(){
		
	}

	public Star(int starID, int hip, int hd, int hr, String gliese,
			String bayerFlamsteed, String properName, double ra, double decl,
			double distance, double mag, double absMag, String spectrum,
			double colorIndex, double x, double y, double z) {
		super();
		this.starID = starID;
		this.hip = hip;
		this.hd = hd;
		this.hr = hr;
		this.gliese = gliese;
		this.bayerFlamsteed = bayerFlamsteed;
		this.properName = properName;
		this.ra = ra;
		this.decl = decl;
		this.distance = distance;
		this.mag = mag;
		this.absMag = absMag;
		this.spectrum = spectrum;
		this.colorIndex = colorIndex;
		this.x = x;
		this.y = y;
		this.z = z;
	}

	public int getStarID() {
		return starID;
	}

	public void setStarID(int starID) {
		this.starID = starID;
	}

	public int getHip() {
		return hip;
	}

	public void setHip(int hip) {
		this.hip = hip;
	}

	public int getHd() {
		return hd;
	}

	public void setHd(int hd) {
		this.hd = hd;
	}

	public int getHr() {
		return hr;
	}

	public void setHr(int hr) {
		this.hr = hr;
	}

	public String getGliese() {
		return gliese;
	}

	public void setGliese(String gliese) {
		this.gliese = gliese;
	}

	public String getBayerFlamsteed() {
		return bayerFlamsteed;
	}

	public void setBayerFlamsteed(String bayerFlamsteed) {
		this.bayerFlamsteed = bayerFlamsteed;
	}

	public String getProperName() {
		return properName;
	}

	public void setProperName(String properName) {
		this.properName = properName;
	}

	public double getRa() {
		return ra;
	}

	public void setRa(double ra) {
		this.ra = ra;
	}

	public double getDecl() {
		return decl;
	}

	public void setDecl(double decl) {
		this.decl = decl;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

	public double getMag() {
		return mag;
	}

	public void setMag(double mag) {
		this.mag = mag;
	}

	public double getAbsMag() {
		return absMag;
	}

	public void setAbsMag(double absMag) {
		this.absMag = absMag;
	}

	public String getSpectrum() {
		return spectrum;
	}

	public void setSpectrum(String spectrum) {
		this.spectrum = spectrum;
	}

	public double getColorIndex() {
		return colorIndex;
	}

	public void setColorIndex(double colorIndex) {
		this.colorIndex = colorIndex;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public double getZ() {
		return z;
	}

	public void setZ(double z) {
		this.z = z;
	}

	@Override
	public String toString() {
		return "Star [starID=" + starID + ", hip=" + hip + ", hd=" + hd
				+ ", hr=" + hr + ", gliese=" + gliese + ", bayerFlamsteed="
				+ bayerFlamsteed + ", properName=" + properName + ", ra=" + ra
				+ ", decl=" + decl + ", distance=" + distance + ", mag=" + mag
				+ ", absMag=" + absMag + ", spectrum=" + spectrum
				+ ", colorIndex=" + colorIndex + ", x=" + x + ", y=" + y
				+ ", z=" + z + "]";
	}

	public Point getPoint() {
		return  new Point((int)x, (int)y, (int)z);
	}
	
	
	
}
